<?php
   
error_reporting(0);
//error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);

try {

    /**
     * Read the configuration
     */
    $config = include __DIR__ . "/../app/config/config.php";

    /**
     * Read auto-loader
     */
    include __DIR__ . "/../app/config/loader.php";

    /**
     * Read services
     */
    include __DIR__ . "/../app/config/services.php";

    /**
     * Read Constants
     */
    include __DIR__ . "/../app/config/constants.php";

        /**
     * Read Constants
     */
    include __DIR__ . "/../public/vendor/PHPMailer/PHPMailerAutoload.php";

    include __DIR__ . "/../public/vendor/Facebook/autoload.php";

    include __DIR__ . "/../public/vendor/cloudinary/src/Cloudinary.php";

    include __DIR__ . "/../public/vendor/cloudinary/src/Uploader.php";

    include __DIR__ . "/../public/vendor/cloudinary/src/Api.php";

    include __DIR__ . "/../public/vendor/simple_html_dom.php";

    include __DIR__ . "/../public/vendor/Push/lib/Pusher.php";


    /**
     * Handle the request
     */

    Cloudinary::config(array( 
      "cloud_name" => "behomebased-ph", 
      "api_key" => "996474664646468", 
      "api_secret" => "2sWCU1-eBJts7wpLsqzH_FOQmEA" 
    ));


    $application = new \Phalcon\Mvc\Application($di);

    echo $application->handle()->getContent();

} catch (\Exception $e) {
    echo $e->getMessage();
}
